package com.zhy.sysconsumer8002.feign;

import com.zhy.utils.ResultTool;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "userproiver8001",fallback = MyHystrix.class)
public interface SysFeign {
    @GetMapping("/getAllEmp")
    ResultTool getAllEmp(@RequestParam(value = "pageNo",required = false) Integer pageNo,
                         @RequestParam(value = "name",required = false) String name,
                         @RequestParam(value = "status",required = false) Integer status);
}
